package org.arrendar.kakeibo.dto;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Text;

@SuppressWarnings("serial")
@PersistenceCapable(identityType = IdentityType.APPLICATION,detachable="true")
public class DetailMoney implements Serializable {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long ID;
	@Persistent
	private String User;
	@Persistent
	private String Category;
	@Persistent
	private int Money;
	@Persistent
	private int Year;
	@Persistent
	private int Month;
	@Persistent
	private int Day;
	@Persistent
	private Text Note;
	
	public DetailMoney() {
		super();
	}

	public DetailMoney(String user, String category, int money,
			int year, int month, int day, Text note) {
		super();
		User = user;
		Category = category;
		this.Money = money;
		Year = year;
		Month = month;
		Day = day;
		Note = note;
	}
	
	public DetailMoney(Long iD, String user, String category, int money,
			int year, int month, int day, Text note) {
		super();
		ID = iD;
		User = user;
		Category = category;
		Money = money;
		Year = year;
		Month = month;
		Day = day;
		Note = note;
	}

	public Long getID() {
		return ID;
	}
	public void setID(Long iD) {
		ID = iD;
	}
	public String getUser() {
		return User;
	}
	public void setUser(String user) {
		User = user;
	}
	public String getCategory() {
		return Category;
	}
	public void setCategory(String category) {
		Category = category;
	}
	public int getMoney() {
		return Money;
	}
	public void setMoney(int money) {
		this.Money = money;
	}
	public int getYear() {
		return Year;
	}
	public void setYear(int year) {
		Year = year;
	}
	public int getMonth() {
		return Month;
	}
	public void setMonth(int month) {
		Month = month;
	}
	public int getDay() {
		return Day;
	}
	public void setDay(int day) {
		Day = day;
	}
	public Text getNote() {
		return Note;
	}
	public void setNote(Text note) {
		Note = note;
	}
}
